homepage Welcome to WebmasterWorld Guest from 54.196.206.80
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Apart from working on .htaccess and enabling mod rewrite
How do I change the links in the script?
mini




msg:3801509
 11:21 am on Dec 6, 2008 (gmt 0)

I am done with .htaccess file and have enabled mod_rewite.

I have understood what regular expressions are and how to create a rule.

Now I assume that I have to change the links in the script as well....(not sure though).

The links are dynamically generated. Each link opens up to a page where there are more links and those are also dynamically generated. And this goes on. Now this has become very confusing. How do I go about this?

Moreover, on each page, all the links are not related to a single php file. I mean the code to dispay the links at the different parts of a page does not belong to a single file......those are from separate files.....these files are 'included'. So do I need to change the links in each of these files?

 

g1smd




msg:3801532
 12:37 pm on Dec 6, 2008 (gmt 0)

The URLs your visitors "see" are those in the links that they click on the pages of your site.

So yes, the links need to show the URL that you want the content to be known by.

The rules in ModRewrite simply take the URL request and translate it into where to get the content from within the server - without revealing what that location actually is.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved