473,395 Members | 1,502 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Using Alais stored in DB

ilearneditonline
130 Expert 100+
I was using Drupal for one of my websites. There I was able to define aliases for my nodes and that is what would display in the address bar. I am moving away from Drupal, but want to use the aliases that I have already defined.

Is this possible through Apache, and if so can someone please point me to something that explains how to do this. Everything I have googled as returned me nada on results, so I am sure I am looking for the wrong thing.
Jul 24 '07 #1
5 1925
Motoma
3,237 Expert 2GB
I was using Drupal for one of my websites. There I was able to define aliases for my nodes and that is what would display in the address bar. I am moving away from Drupal, but want to use the aliases that I have already defined.

Is this possible through Apache, and if so can someone please point me to something that explains how to do this. Everything I have googled as returned me nada on results, so I am sure I am looking for the wrong thing.
I have no experience with Drupal, but what I imagine you are looking for is mod_rewrite to handle URL rewriting.
Aug 1 '07 #2
ilearneditonline
130 Expert 100+
I have no experience with Drupal, but what I imagine you are looking for is mod_rewrite to handle URL rewriting.
That is what i figured I would need, but can't find anything on how to pull that from a database.
Aug 1 '07 #3
Motoma
3,237 Expert 2GB
That is what i figured I would need, but can't find anything on how to pull that from a database.
No, you won't be able to.
Aug 1 '07 #4
docdiesel
297 Expert 100+
You could do a "SELECT dst, src FROM url_alias" once, store the result in a file named old_drupal_mappings.cfg and rewrite them in Apache with "RewriteMap alias-to_node txt:/path/to/old_drupal_mappings.cfg". (In case that you're planning to store the old drupal content under its old node/... pathes.)

Regards,

Bernd
Aug 10 '07 #5
Motoma
3,237 Expert 2GB
You could do a "SELECT dst, src FROM url_alias" once, store the result in a file named old_drupal_mappings.cfg and rewrite them in Apache with "RewriteMap alias-to_node txt:/path/to/old_drupal_mappings.cfg". (In case that you're planning to store the old drupal content under its old node/... pathes.)

Regards,

Bernd
Great suggestion Bernd, welcome to The Scripts!
Aug 10 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: Chuck Anderson | last post by:
Can anyone point me in the right direction? I want to use Php to automate confirmation of someone joining an email list by them replying to an email (so they don't have to have a browser?). I...
0
by: Aaron | last post by:
The following code works fine when previewing a Crystal report using ASP, EXCEPT when it gets to a report using a SubReport and its associated parameters. The whole report just comes up blank with...
2
by: Yves Touze | last post by:
Hi All, I'm trying to migrate from SQL Server 7.0 to SQL Server 2000. I've got some ASP page which call VB components that retrieve shaped recordsets from SQL Server using the MSDATASHAPE...
0
by: Nashat Wanly | last post by:
HOW TO: Call a Parameterized Stored Procedure by Using ADO.NET and Visual C# .NET View products that this article applies to. This article was previously published under Q310070 For a Microsoft...
4
by: marc | last post by:
I've been developing a stored procedure that uses a user defined function in the query portion of the procedure. However, since the end product needs to allow for dynamic table names, the UDF will...
2
by: scott | last post by:
Hi, Just wondering what sort of problems and advantages people have found using stored procedures. I have an app developed in VB6 & VB.NET and our developers are starting to re-write some of the...
2
by: Kent Lewandowski | last post by:
hi all, Recently I wrote some stored procedures using java jdbc code (admittedly my first stab) and then tried to implement the same within java packages (for code reuse). I encountered...
0
by: Amber | last post by:
Stored procedures are faster and more efficient than in-line SQL statements. In this article we will look at two SQL Server stored procedures; one using an input parameter and one not, and see how...
2
by: acw | last post by:
On a SQL Server 2000 db I would like to setup a stored procedure that accesses couple tables and runs the extended stored procedure xp..cmdshell. The goal is to grant users with limited privileges...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.